package com.wish.base.service.impl;

import com.wish.base.dto.RoomInfoDTO;
import com.wish.base.entity.RoomInfo;
import com.wish.base.mapper.RoomInfoMapper;
import com.wish.base.service.IRoomInfoService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wish.base.vo.RoomInfoVO;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author group02
 * @since 2022-05-23
 */
@Service
public class RoomInfoServiceImpl extends ServiceImpl<RoomInfoMapper, RoomInfo> implements IRoomInfoService {

    @Override
    public List<RoomInfo> getList(RoomInfo tbRoomInfo) {
        return getBaseMapper().getList(tbRoomInfo);
    }

    /**
     * 房态图
     * @param roomInfoDTO
     * @return
     */
    @Override
    public List<RoomInfoVO> getDisperseList(RoomInfoDTO roomInfoDTO) {
        return getBaseMapper().getDisperseList(roomInfoDTO);
    }

    @Override
    public List<RoomInfoVO> getJzList(RoomInfoDTO roomInfoDTO) {
        return getBaseMapper().getJzList(roomInfoDTO);
    }

    @Override
    public List<RoomInfoVO> findPageListDetailByJz(RoomInfoDTO roomInfoDTO) {
        return getBaseMapper().findPageListDetailByJz(roomInfoDTO);
    }
}
